package zhklappoint.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;

import zhklappoint.util.BaseEntity;


@Entity(name="zhkl_consumer_token")
public class TokenEntity extends BaseEntity {
    //用户ID
    @Column(length = 32)
    private String userId;
    //token
    @Column(length = 256)
    private String token;
    //过期时间
    @Column(length = 64)
    private Date expireTime;
    //更新时间
    @Column(length = 64)
    private Date updateTime;

    /**
     * 设置：用户ID
     */
    public void setUserId(String userId) {
        this.userId = userId;
    }

    /**
     * 获取：用户ID
     */
    public String getUserId() {
        return userId;
    }

    /**
     * 设置：token
     */
    public void setToken(String token) {
        this.token = token;
    }

    /**
     * 获取：token
     */
    public String getToken() {
        return token;
    }

    /**
     * 设置：过期时间
     */
    public void setExpireTime(Date expireTime) {
        this.expireTime = expireTime;
    }

    /**
     * 获取：过期时间
     */
    public Date getExpireTime() {
        return expireTime;
    }

    /**
     * 设置：更新时间
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * 获取：更新时间
     */
    public Date getUpdateTime() {
        return updateTime;
    }
}
